def pingfang(n):
    m = int(n**0.5)
    return m*m == n


def main():
    for a in range(1, 9):
        for b in range(0, 10):
            if pingfang(a*1100+b*11):
                print(a*1100+b*11)


if __name__ == '__main__':
    main()
